package com.ruoyi.common.yh.api.dtovo.comm;

/**
 * @ClassName CodeDTO
 * @Deacription TODO
 * @Author Administrator
 * @Date 2021/3/23 16:43
 * @Version 1.0
 **/
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@ApiModel("获取验证码参数")
public class CodeDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 电话号码 */
    @ApiModelProperty(value = "电话号码", name = "phone",required = true)
    @NotEmpty(message = "电话号码不能为空")
    private String phone;
    @ApiModelProperty(value = "为空登入，1注册,2修改密码", name = "codeType",required = true)
    private String codeType;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }
}
